﻿using PhilipSupport.Controls;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PhilipSupport
{
    public partial class QARecordForm : Form
    {
        private List<QAndAControl> controls = new List<QAndAControl>();

        public QARecordForm()
        {
            InitializeComponent();
        }

        private void QARecordForm_Load(object sender, EventArgs e)
        {
            var qa = new QAndAControl();
            listView.Controls.Add(qa);
            controls.Add(qa);
        }

        private void btn_add_Click(object sender, EventArgs e)
        {
            var qa = new QAndAControl();
            qa.Location = new Point(0, controls.Count * qa.Height);
            listView.Controls.Add(qa);
            controls.Add(qa);
        }
    }
}
